home *** CD-ROM | disk | FTP | other *** search
- In article <30FD580D.4731@coewl.cen.uiuc.edu>, m-han3 says...
- >howard daniel joseph wrote:
- >> Can I perform simple maths (addition, division) between integers of
- >> different types? I'd assume so, right?
-
- >Yes, you can. But they will be converted according to the order of the
- >evaluation of the expression. You may lose precision sometimes.
-
- I thought when u perform some arithmetic on numbers of different types the
- smaller type is upgraded (like if u add an int and a float, the int is
- upgraded to a float before the arithmetic operation). No precision would be
- lost. Is this correct?
-
- --
- Consciousness: that annoying time between naps.
-
-
-